package com.example.webdome.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.webdome.mapper.AdminMapper;
import com.example.webdome.pojo.Admin;
import com.example.webdome.service.AdminService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class AdminServiceImpl extends ServiceImpl<AdminMapper, Admin> implements AdminService {
    @Override
    public Admin getByPassword(String password) {
        return lambdaQuery().eq(Admin::getPassword, password).one();
    }
}
